<?php get_header(); ?>

<div class="content-area">
  <main class="site-main">
      <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
          <article class="single-post">
              <h1><?php the_title(); ?></h1>
              <div class="post-meta">
                  <?php the_date(); ?> | <?php the_author(); ?>
              </div>
              <div class="post-content">
                  <?php the_content(); ?>
              </div>

                <!-- 评论区域 -->
                <?php comments_template(); ?>

          </article>
      <?php endwhile; endif; ?>
  </main>
  <?php get_sidebar(); ?>
</div> 

<?php get_footer(); ?>
